package cn.south.campus.admin.campus.model.req;

import cn.south.campus.admin.campus.model.entity.Complaint;
import cn.south.campus.common.model.qo.BaseQO;
import cn.south.campus.common.utils.DateUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author chow
 * @since 2024/12/5 16:12
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ComplaintReq extends BaseQO<Complaint> {
    private String keyword;
    private String user;
    private Integer status;
    private String startTimeStr;
    private String endTimeStr;

    public LocalDateTime getStartTime() {
        return DateUtil.parseString(startTimeStr);
    }

    public LocalDateTime getEndTime() {
        return DateUtil.parseString(endTimeStr);
    }
}
